package org.zht.dormpro.auth.bean;

import org.zht.dormpro.auth.model.SysPermission;

import java.io.Serializable;
import java.util.List;

/**
 * session需要序列化,认证成功之后存到session中的bean
 */
public class AuthUser implements Serializable {
    private String  usercode;//账号
    private String username;//用户名称
    private Integer userId;//编号

    private List<SysPermission> permissions;//权限
    private List<SysPermission> menus;//菜单

    public String getUsercode() {
        return usercode;
    }

    public void setUsercode(String usercode) {
        this.usercode = usercode;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public List<SysPermission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<SysPermission> permissions) {
        this.permissions = permissions;
    }

    public List<SysPermission> getMenus() {
        return menus;
    }

    public void setMenus(List<SysPermission> menus) {
        this.menus = menus;
    }
}
